<?php
namespace Admin\Models\device;

use Admin\Models\BaseModel;
class XhsysDeviceSignIn extends BaseModel
{
    /**
     * @var integer or string
     */
    public $iId;
    public $iStatus;
    public $iUserId;
    public $iSchoolId;
    public $sAdClsName;
    public $sLogonName;
    public $sDeviceNumber;
    public $sIMei;
    public $sSignature;
    public $sSignatureUrl;
    public $sSignInDate;
    public $iSignInStatus;
    public $iProtocolStatus;
    public $iPartsStatus;
    public $sContact;
    public $sContactPhone;

    /**
     *
     * @var integer
     *
     */
    public $bDelete;

    /**
     *
     * @var string
     *
     */
    public $tCreateDate;

    /**
     *
     * @var integer
     *
     */
    public $iCreateUserId;

    /**
     *
     * @var string
     *
     */
    public $tLastModifyDate;

    /**
     *
     * @var integer
     *
     */
    public $iLastModifyUserId;

    /**
     * Initialize method for model.
     */
    public function initialize()
    {
        parent::initialize();
        $this->setSource("'XHSys_DeviceSignIn'");
    }

    /**
     * Returns table name mapped in the model.
     *
     * @return string
     */
    public function getSource()
    {
        return 'XHSys_DeviceSignIn';
    }

    /**
     *
     * @param null $parameters
     *
     * @return \Phalcon\Mvc\Model\ResultsetInterface | XhsysDeviceSignIn[]
     *
     * create by qgz 20180914
     */
    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    /**
     *
     * @param null $parameters
     *
     * @return \Phalcon\Mvc\Model | XhsysDeviceSignIn | XhsysDeviceSignIn[]
     *
     * create by qgz 20180914
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }
}
